package com.changgou.config.pojo;


import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.ArrayList;
import java.util.List;

@Table(name = "tb_area")
public class Area {

    @Id
    private Integer id;  //id
    private String areaname;  //栏目名
    private Integer parentid;  //上级id
    private String shortname; //
    private Integer level;     //等级
    private Integer sort;      //排序
    @Transient
    private List<Area> AreaList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAreaname() {
        return areaname;
    }

    public void setAreaname(String areaname) {
        this.areaname = areaname;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getShortname() {
        return shortname;
    }

    public void setShortname(String shortname) {
        this.shortname = shortname;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public List<Area> getAreaList() {
        return AreaList;
    }

    public void setAreaList(List<Area> areaList) {
        this.AreaList = areaList;
    }
}
